import router from "@/router"
import store from "@/store"

const whiteList = ['a1', 'a2', '/', '404', 'login', 'a1-2', 'a1-3', 'a1-3-1', 'a1-3-2']

router.beforeEach((to, from, next) => {
    if (whiteList.includes(to.name)) {
        //在白名单中
        next()
    } else {
        let res = store.dispatch('user/getUserInfo')
        console.log(res)
    }
})
